
*------------------------------------------------------------------------------*
*	PIP ESTIMATES: Countries
*
*	This input file estimates the ASPM as discussed in "The Politics of
*	Environmental Performance" (Jahn 2016).
*
*	Please read the "Guide for Modifying the ASPM" for explanations.
*
*	Version:	1.0
*	Author:		Nils Düpont & Detlef Jahn
*				
*	Contact:	Detlef.Jahn@eui.eu
*				data@nilsduepont.net
*	
	set more off
	macro drop _all
*------------------------------------------------------------------------------*


* 0. Decide, whether you want to use the "categorical" (the default) or the "unique" minister coding
*	 Available options: "" (default) or "minister" (unique minister coding)
*	 IMPORTANT NOTE: The minister variables p206, p210, p214, p217, and p218 are NOT present in the Minister PIP,
*	 meaning: if you choose "minister" here, you cannot use one of them in the model specifications in Step 4 below!
*	 See the "Companion PIP Minister" for more details.
global dataset		""


* 1. Decide which idelogical index to use: ja10f = LR, ja20f = GG
*	 Available options: any ideological index variable included in the dataset
global ideology		"ja10f"


* 2. Give a name for the files which will be saved (the suffixes will be added automagically).
global save			"pip_govpos_vp"


* 3. Decide which countries should be included; use the country code according to ISO 3166-1 Alpha-3.
*	 Available options: any combination of countries included in the dataset
global countries	"AUS AUT BEL CAN DNK FIN FRA GER GRC IRL ITA JPN NLD NZL NOR PRT ESP SWE SWI GBR USA  CYP LUX MLT  BGR HRV CZE EST HUN LVA LTU POL ROU SVK SVN"


* 4. Decide how each country should be modeled
*    Available options for gov( ): seats, portfolios, cabmem, pm, minister:portf1-5, pmnegot:cabinet, pmnegot:portf1-5, unanimity, uwmean, special_aspm (USA only)
*	 	For minister:portf1-5 and pmnegot:portf1-5 use the minister variables p201-p217 to define the portfolio(s) taken into account
*	 Available options for minority( ): no, yes;antisys:no, yes;antisys:party1-5
*		For antisys:party1-5 use the five-digit party code to define the party/parties taken into account
*	 Available options for vp( ): gov, 1ch, 2ch, pres (or any combination), special_aspm (FRA, SWI and USA only)
			
*Prime Minister Model
global AUS   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov,2ch)"
global CAN   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov,2ch)"
global CYP   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov,pres)"
global FRA   "gov(pmnegot:p216,p211)		minority(yes;antisys:31720) 	vp(special_aspm)"
global GBR   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov)"
global HUN   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)  		vp(gov)"
global ICE   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov,pres)"
global IRL   "gov(pmnegot:p216,p211)		minority(yes;antisys:53951)		vp(gov)"
global LVA   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov,pres)"
global LTU   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov,pres)"
global NZL   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov)"
global POL   "gov(pmnegot:p216,p211)		minority(yes;antisys:no)   		vp(gov)"

* Minister Model
global AUT   "gov(minister:p216,p211)	  	minority(yes;antisys:no)   		vp(gov)"
global BGR   "gov(minister:p216,p211)		minority(yes;antisys:no)   		vp(gov,pres)"
global CZE   "gov(minister:p216,p211)		minority(yes;antisys:no)   		vp(gov)"
global EST   "gov(minister:p216,p211)		minority(yes;antisys:no)   		vp(gov)"
global GER   "gov(minister:p216,p211)  		minority(yes;antisys:no)   		vp(gov,2ch)"
global GRC   "gov(minister:p216,p211)  		minority(yes;antisys:no)   		vp(gov)"
global HRV   "gov(minister:p216,p211)		minority(yes;antisys:no)   		vp(gov)"
global ITA   "gov(minister:p216,p211)  		minority(yes;antisys:32710) 	vp(gov,2ch)"
global JPN   "gov(minister:p216,p211)  		minority(yes;antisys:no)   		vp(gov,2ch)"
global MLT   "gov(minister:p216,p211)  		minority(yes;antisys:no)   		vp(gov)"
global PRT   "gov(minister:p216,p211)		minority(yes;antisys:no)   		vp(gov,pres)"
global ROU   "gov(minister:p216,p211) 		minority(yes;antisys:no)   		vp(gov,2ch)"
global SVK   "gov(minister:p216,p211) 		minority(yes;antisys:no)   		vp(gov)"
global SVN   "gov(minister:p216,p211 		minority(yes;antisys:no)   		vp(gov)"

*Collegial Model
global BEL   "gov(seats)   					minority(yes;antisys:no)   		vp(gov,2ch)"
global DNK   "gov(seats)   					minority(yes;antisys:13951) 	vp(gov,2ch)"
global FIN   "gov(seats)   					minority(yes;antisys:no)   		vp(gov,pres)"
global LUX   "gov(seats)   					minority(yes;antisys:no)  		vp(gov)"
global NLD   "gov(seats)   					minority(yes;antisys:no)   		vp(gov,2ch)"
global NOR   "gov(seats)   					minority(yes;antisys:12951) 	vp(gov)"
global ESP   "gov(seats)   					minority(yes;antisys:no)   		vp(gov,2ch)"
global SWE   "gov(seats)   					minority(yes;antisys:11951) 	vp(gov,2ch)"

*Special Model
global SWI   "gov(seats)    				minority(yes;antisys:no)   		vp(special_aspm)"
global USA   "gov(special_aspm)   			minority(yes;antisys:no)   		vp(special_aspm)"


* 5. Choose whether the temporary country files should be kept for inspection or be erased.
*	 Available options: keep, erase
global files		"erase"


*------------------------------------------------------------------------------*
* Run estimations -- Do not touch, unless you know why you are doing it...
do techdata/parse_input.do
